<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container,.container1, .container2{
        width: 800px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="container"></div>
    <div class="container1"></div>
    <div class="container2"></div>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.0/dist/echarts.min.js"></script>
    <script>
      const myEcharts = echarts.init(document.querySelector(".container"));
      const myEcharts1 = echarts.init(document.querySelector(".container1"));
      const myEcharts2 = echarts.init(document.querySelector(".container2"));
      option = {
        xAxis: {
         
          data: ["星期一", "星期二", "星期三", "星期四", "星期五"],
        },
        yAxis: {
          axisLine: {
            show: true,
          },
        },
        series: {
          type: "bar",
          data: [80, 98, 99, 130, 60],
        },
        tooltip:{},
        title:{
            text:"柱形图",
            left:"center"
          },
      };
      option1 = {
        xAxis: {
         
          data: ["星期一", "星期二", "星期三", "星期四", "星期五"],
        },
        yAxis: {
          axisLine: {
            show: true,
          },
        },
        series: {
          type: "line",
          data: [80, 98, 99, 130, 60],
        },
        tooltip:{},
        title:{
            text:"柱形图",
            left:"center"
          },
      };
      option2 = {
        xAxis: {
         
          data: ["星期一", "星期二", "星期三", "星期四", "星期五"],
        },
        yAxis: {
          axisLine: {
            show: true,
          },
        },
        series: {
          type: "pie",
          data: [80, 98, 99, 130, 60],
        },
        tooltip:{},
        title:{
            text:"柱形图",
            left:"center"
          },
      };
      myEcharts.setOption(option);
      myEcharts1.setOption(option1);
      myEcharts2.setOption(option2);
    </script>
  </body>
</html>
